let i = 0
const callBack = (IdleDeadline) => {
  const getTimeOut = () => IdleDeadline.timeRemaining()
  i++
  console.log('run requestIdleCallback', getTimeOut())
  i < 10 && requestIdleCallback(callBack)
}
requestIdleCallback(callBack)
